<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="../../css/public.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/login.css"/>
</head>
<body>
<!-------------------login-------------------------->
<div class="login">
    <form action="login" method="post">
        <h1><a href="toindex"><img src="../../img/temp/logo.png"></a></h1>
        <p></p>
        <div class="msg-warn hide"><b></b>公共场所不建议自动登录，以防账号丢失</div>
        <span th:if="${session.user!=null}">
			<div th:object="${session.user}">
				<p><button  th:type="text" name="username" placeholder="用户名" th:text="*{username}"></button></p>
				<p><button th:type="password" name="password" placeholder="密码" th:text="*{password}"></button></p>
				<p><input type="submit" name="" value="登  录"></p>
			</div>
		</span>
		<span th:if="${session.user==null}">
			    <p><input type="text" name="username" placeholder="用户名"></p>
				<p><input type="password" name="password" placeholder="密码"></p>
				<p><input type="submit" name="" value="登  录"></p>
				<p class="txt"><a class="" href="/zbest/user/toreg">免费注册</a><a href="forget.html">忘记密码？</a></p>
		</span>


    </form>
</div>

</body>
</html>
